package smartclass.analysisData;

import java.util.HashMap;

import android.annotation.SuppressLint;
import android.graphics.PointF;
import android.graphics.RectF;

@SuppressLint("UseSparseArrays")
public class AnalysisPoint {

	private static HashMap<Integer, PointF> twoPoint;
	static String text1;

	public static HashMap<Integer, PointF> parsePoint(String text) {
		twoPoint = new HashMap<Integer, PointF>();
		if (text == null) {
			return null;
		}
		int index = text.indexOf(":");
		text1 = text.substring(index + 1);
		String[] point = text1.trim().split(";");
		twoPoint.put(
				1,
				new PointF(Float.parseFloat(point[0]), Float
						.parseFloat(point[1])));
		twoPoint.put(
				2,
				new PointF(Float.parseFloat(point[2]), Float
						.parseFloat(point[3])));

		return twoPoint;
	}

	public static HashMap<Integer, PointF> parsePointWhenChange(RectF rect, String text) {
		twoPoint = new HashMap<Integer, PointF>();

		return twoPoint;
	}
}
